package com.lewis;

import com.spring4all.mongodb.EnableMongoPlus;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityFilterAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 启动程序
 *
 * @author Lewis
 */
@MapperScan("com.lewis.**.mapper")
@EnableDiscoveryClient
@EnableFeignClients
@EnableMongoPlus
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, SecurityAutoConfiguration.class, SecurityFilterAutoConfiguration.class})
public class LewisM2Application {
	public static void main(String[] args) {
		SpringApplication.run(LewisM2Application.class, args);

		System.out.println("============================= Lewis's system [ lewis-module-m2 ] start success =============================\n");
	}
}
